﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace cefsharpwpf
{
    /// <summary>
    /// PassWordKeyBoard.xaml 的交互逻辑
    /// </summary>
    public partial class PassWordKeyBoard : UserControl
    {

        private string paswordinput ;
        public string PassWordInput
        {
            get {
                return paswordinput = tb_input.Text;
            }            
        }

        public PassWordKeyBoard()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button btn = e.OriginalSource as Button;
            tb_input.Text += btn.Content;
            if (btn.Name == "btn_clear")
            {
                tb_input.Text = "";
            }
        }     
    }
}
